
import java.util.logging.*;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author admin-pc
 */
public class FindMainMenuCommand implements Command {

    FindMenu findMenu;
    MainMenu mainMenu;

    private static Logger log = Logger.getLogger(FindMainMenuCommand.class.getName());

    public FindMainMenuCommand(FindMenu findMenu) {

        this.findMenu = findMenu;
    }

    @Override
    public void execute() {
        try {
            findMenu.find();
        }
        catch (Exception e) {
            log.log(Level.SEVERE, "Exception: ", e);
        }
    }

}
